import axios from 'axios'

export async function getclientList(){
    var resp = await axios.get('/api/clientInfo/list');
    console.log(resp.data);
    return resp.data;
}

export async function queryList(query){
    var resp = await axios.get('/api/clientInfo/queryClient', {
        params: {
            name:query.username,
            address:query.userAdress,
        }
    });
    return resp.data;
}

export async function suessR(clientCode){
    var resp = await axios.get('/api/clientInfo/sucessReview', {
        params: {
            clientCode:clientCode
        }
    });
    return resp.data;
}

export async function unsucessR(clientCode){
    var resp = await axios.get('/api/clientInfo/unsucessReview', {
        params: {
            clientCode:clientCode
        }
    });
    return resp.data;
}